

<script>
    var isurl_list = {0:'文字内容',1:'跳转链接'};
    var afterShowForm =function(e,edit){
        //$("#img").css({width:500});

        $("#go_page").attr("title","填【系统开放表】里的页面id，0表示不使用小公告").tooltip({container:'body'});
        $("#go_arg").attr("title","部分页面含有子页面，此处填入该子页面的id").tooltip({container:'body'});
        $("#limit").attr("title","默认为全渠道可见，填入 R 表示仅R版本可见").tooltip({container:'body'});
    }
    var NewsColModel = [
        {label: '标签', name: 'hot',width: 50, editable: true, sortable:false,hidden:false,resize:true,fixed:true,search:false},
        {label: '图片', name: 'img',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        {label: '内容种类', name: 'isurl',width: 80, editable: true, sortable:false,hidden:true,resize:true,fixed:true,search:false,
            editrules: { edithidden: true },
            formatter:'select', edittype:'select', editoptions:{value:isurl_list},
            stype:"select",
            searchoptions:{sopt:['eq'],value:isurl_list}
        },
        {label: '内容', name: 'content',width: 180, editable: true, sortable:false,hidden:true,resize:true,fixed:true,search:false,
            editrules: { edithidden: true },
            edittype:'textarea',editoptions:{rows:"8",cols:"70"},
        },
        {label: '大眼睛图片', name: 'simg',width: 80, editable: true, sortable:false,hidden:false,resize:true,fixed:false,search:false},
        {label: '大眼睛-跳转页面ID', name: 'go_page',width: 100, editable: true, sortable:false,hidden:false,resize:true,fixed:true,search:false},

        {label: '大眼睛-跳转参数', name: 'go_arg',width: 100, editable: true, sortable:false,hidden:false,resize:true,fixed:true,search:false},

        {label: '限定参数', name: 'limit',width: 100, editable: true, sortable:false,hidden:false,resize:true,fixed:true,search:false},
    ];
</script>

